import 'package:flutter/material.dart';
import 'package:flutter_base/widgets/base/basePage.dart';

/// Create： Zhang 3/18/21 3:40 PM
/// 描述：测试页面跳转

class SecondPage extends BasePage {
  SecondPage() : super(title: "新页面");

  @override
  PageState createState() => Content();
}

class Content extends PageState {
  String str = "点击更新状态";

  @override
  Widget? content(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text(str),
          ElevatedButton(
            child: Text(str),
            onPressed: () {
              setState(
                () {
                  str = "状态改变";
                },
              );
            },
          ),
        ],
      ),
    );
  }
}
